{extend name='layout/main' /}

{block name='main'}
<div class="title">
    客户
    <span class="handle"><a href="/trade/user/allot"><i class="iconfont">&#xe836;</i>新增客户</a></span>
</div>
<div class="table">
    <table id="userlist">
        <tr>
            <th>编号</th>
            <th>姓名</th>
            <th>资金账号</th>
            <th>手机号</th>
            <th>地址</th>
            <th>开户时间</th>
            <th>所属</th>
            <th>操作</th>
        </tr>
        {foreach $UserList as $key=>$it}
        <tr>
            <td>{$key+1}</td>
            <td>{$it.custom_name }</td>
            <td>{$it.account }</td>
            <td>{$it.phone }</td>
            <td>{$it.custom_address }</td>
            <td>{$it.reg_time }</td>
            <td>{$it.pid_user}-{$it.pid_name}</td>
            <td  class="handle">
                <a href="javascript:;" class="edit_this" data-id="{$it.nid}">编辑</a>
                <a href="javascript:;" class="delete_this" data-id="{$it.nid}">删除</a>
            </td>
        </tr>
        {/foreach}
    </table>
</div>

<div class="page">
    {$UserList->render()}
    <div class="page_record">共<strong>{$UserList->total()}</strong>条记录，每页显示：<strong>{$UserList->listRows()}</strong>条记录  共<strong>{$UserList->lastPage()}</strong>页</div>
</div>

{/block}

{block name='javascript'}
<script src="/asset/js/user_custom.js"></script>
{/block}